#!/bin/bash
#添加密钥
cat >/root/.ssh/authorized_keys<<EOF
#server
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsSpJ/azHNK/jaBENIkpI7xXV+gDu11/tWo55FewD5gEJsa0LPFMdg0i2pQbEI5mC4/PhCzCFT82ECOmPdGkYtpOkc3vMyIfPyYlSTBDnjdUOCZ692Ul9hiX7N4qXhKdKcMW6+Aoz+RXbuhYoikI12fMJQFSQLgzhFi2PVQ4Q+gQVEsYKMfWZq5sMZCZhGMeZ0WJZrJvR4NpNswCOy+ZszJ+Ao5x+2OxdYrH6MJhiCuKkvk1r4cZG5pSoEOfesY5zFKy3lzQzuJz+1s+i/JmqhC1AR7p0i6lfkI6x9uzKfECvvbg615uSgwzMnNFKsNTzg+eGl4kDTo7kj1e48BI+3Q== geyunchong@PhoenixServer

#client
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdao7h8aV/Z3jXt7UMUX4n8d43MtcKx7ccrfhuTf8/OrOg0GorjmJiWVjDeAoU7+hYVy6QHSrbN4BXzdSgAuOi3ZnoEWcqo+rSUoOukgDGE6kZCvDFq+dQ3KPqH2ZhHAPms4iN0omTex0MJWDVPeiW2XB97pBinJ/ynjyQRMTWl2EMVhFpICAKHsOXk9Xs98dldXrlbParn57lnEhKpFgfitVpnHfJPBev0gtnh1mDZgff9gvPEz9PBhnhdOREG4hJiQDXT+icI6xjntPpaqTT17FZCP4S7n0MmgRIzfIV/WBW6Z10wPjNC5nF6cpSz07VPumzvWL2MH4P+C05d3kR zhangyao

#php
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOa6p64TlvZaAhGkSanWkfnYIFdBNgiNr4H+SUmgkJMnfoHOBf9OVubyMbwCWWJJDxwV17FUY0wnQoft77Gb8mAB3W8PQq9oSui3T1Rpa09TlOzgMWBs/PxprlSqxBt89pVIT87G8m0EIiWiyI3/E2Q96yDX0eU/WHSBpSBTQbShxh96NYahoI29bGJxWrndl5WdMbiR/EAD+pHO+kkGiarqE19HT+ifRtppM5d0KagtftefTTzH2fPTDMuzLFfOJOfo9qOb6iBgWAgk8lYPRY6Y8wyy6GGReeDSkrKlzIE5VFIObk8GLylqRdqwFnuyhM66CwIvpYEFuzvUAD8nuj chenwenjun@phoenix

#it
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz3s5gF/jrrwYJePwHW0smKiviF5mrqXd3HbIKOrQkY1IsbEUjvqTfs90FnPYAg4UCoNVwcwHAg/a6aw1B+ySPugyL5QaXYKnb5nr9BTDNlQ8FtPZMz5FiD/Hg0bbrIRsinHkiA0WlanohIwJYxhidVA1bH7KesHPnH/YxzU+vYy0JDHFEk/R2mzZBxMPq8k3QWXXUnenkV7n7y3fkg/iPpIKHGA4Pghd07fxtug8m/E9QopEJC+hIEXrriOKHCRJTlgGCh/ap5KSZIcwodguLMKRhkTFiXNUgyw+l1AzwteLwpmv1l8DIj9+zYB5oPllyRUOPOMwe5FFCrOJDOlJl lizuxiang

#ansible
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPfzFPT8Oi77mjJJwdYs0wQ4oWW7bRGNw9dUjiOvGT2mCtVOkLvnnFafZaifHQMlnyrBD1TbG7kkCwZJ9omzU4wg3fYimGDFO+OuNfWXdWPMAAl6u74tjCHsc1g3FVpW0iTAvwpOlqZBM2pzyk1dMJZCua23TkWFtY6tjYQVZQN/3NC1PAsgVntLRZTEKE7LFWh161X2CVTx+kXjFMbDHu9SSDVOQeQowCI+MMcDiqmjhZkBerXpOzv2J6sPhs0cTksTUmWLAZ2dY2HUo7GgJZQOudV/KQpHzf+8rVegruB51BYHEqBBTViEOQRrHijH0c2tQ9uVOT8mgqHsoBl4if root@localhost.localdomai
EOF

chmod 644 /root/.ssh/authorized_keys